#include "relaydialog.h"
#include "ui_relaydialog.h"

relayDialog::relayDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::relayDialog)
{
    ui->setupUi(this);
}

relayDialog::~relayDialog()
{
    delete ui;
}

void relayDialog::on_pushButton_relay1on_clicked()
{
    //ui->label_led4->setStyleSheet(QString("background-image: url(:/new/prefix1/ledon.png);"));
    ui->label_relay1->setStyleSheet(QString("background-image: url(:/new/prefix1/relayon.png);"));
}

void relayDialog::on_pushButton_relay1off_clicked()
{
    ui->label_relay1->setStyleSheet(QString("background-image: url(:/new/prefix1/relayoff.png);"));
}

void relayDialog::on_pushButton_relay2on_clicked()
{
    ui->label_relay2->setStyleSheet(QString("background-image: url(:/new/prefix1/relayon.png);"));
}

void relayDialog::on_pushButton_relay2off_clicked()
{
    ui->label_relay2->setStyleSheet(QString("background-image: url(:/new/prefix1/relayoff.png);"));
}

void relayDialog::on_pushButton_relay3on_clicked()
{
    ui->label_relay3->setStyleSheet(QString("background-image: url(:/new/prefix1/relayon.png);"));

}

void relayDialog::on_pushButton_relay3off_clicked()
{
    ui->label_relay3->setStyleSheet(QString("background-image: url(:/new/prefix1/relayoff.png);"));
}

void relayDialog::on_pushButton_relay4on_clicked()
{
    ui->label_relay4->setStyleSheet(QString("background-image: url(:/new/prefix1/relayon.png);"));

}

void relayDialog::on_pushButton_relay4off_clicked()
{
    ui->label_relay4->setStyleSheet(QString("background-image: url(:/new/prefix1/relayoff.png);"));
}
